﻿using RSSReader.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace RSSReaderServer.Controllers
{
  public class HomeController : Controller
  {
    public ActionResult Index()
    {
      ViewBag.Title = "Home Page";

      return View();
    }

    public ActionResult CreateUser()
    {
      return View();
    }

    public ActionResult test()
    {
      ApplicationDbContext context = new ApplicationDbContext();
      var test = context.Database.SqlQuery<UserSubscriptionVW>("select * from dbo.UserSubcriptionVW").ToList();
      return View(test);
    }
  }
}
